< previous page page_222 next page >

Page 222
One of the biggest traps developers fall into is the one-more-feature syndrome. Have you ever finished a project at home, sat back, and said, That looks great, but just let me change one thing? If you have, you already know about this deadly trap. If you keep changing just one more thing, the application will never be completed. To prevent this from happening to you, develop the list of tasks (functions and features) for your application and stick with it. If you find something that you think would be nice to have in the application, put it on the Next Release list. This way, you don't lose the idea, yet it won't affect the initial version of the application. If you find a task that must be in the application but isn't, however, you have to add it, no matter what effect it might have on the completion date of the application.
A second limit that you need to set for the application is how much data is too much. Although you want to create a fairly flexible application, providing users with too much flexibility usually backfires in the form of errors and lost data. Imagine what would happen if you allowed users to create new phone number elements when needed. This could lead to a single entry having hundreds of phone numbers associated with it. This in turn would cause a problem with printing the entry. And how would users easily display this information?
Most times, the limits put on data in a database is a function of the database engine and how much data it can safely support. In the case of Microsoft Access 97, the database file can't exceed 1GB (gigabyte). For an application such as an address book, this is an lawfull lot of names.
Creating the Database
When you know what types of forms you need and how they will look, you next need to create the database that will contain the information required for this application. You've already learned that if you have information with several duplicate data elements related to it, you should create multiple tables. In this application, each entry can contain one or more of the following pieces of information:
Addresses (Home, PO Box, Business, Shipping)
Phone Numbers (Home, Business, Fax, Cell, Pager)
Children's Names
The process of listing these possibilities helps in deciding how many tables you'll need in the database. In addition to these main tables in the database, you'll probably need other tables, called reference or support tables, to provide all the capabilities to users.

 
< previous page page_222 next page >

If you like this book, buy it!